package cn.chinaunicom.sdsi.frm.workflow.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 流程发起时需保存流程信息的实例，此对象用于存储流程发起后不再改变的参数
 * 
 * @author liyh
 * 
 */
public class WorkflowEntityForStart implements Serializable {

	private static final long serialVersionUID = -8305771746023950988L;

	/**
	 * 流程标题
	 */
	private String title;
	/**
	 * 用户ID
	 */
	private String userId;
	/**
	 * 流程编码
	 */
	private String processDefinitionKey;
	/**
	 * 业务数据主键
	 */
	private String businessKey;

	/**
	 * 流程发起时，所需参数的唯一构造方法
	 * 
	 * @param processDefinitionKey
	 *            流程编码，即配置文件中流程id
	 * @param title
	 *            流程标题
	 * @param userId
	 *            用户ID，基础数据多岗位则使用岗位ID
	 * @param startTime
	 *            流程发起时间
	 * @param businessKey
	 *            业务数据主键
	 */
	public WorkflowEntityForStart(String processDefinitionKey, String title, String userId, Date startTime,
			String businessKey) {

		this.processDefinitionKey = processDefinitionKey;
		this.userId = userId;
		this.title = title;
		this.businessKey = businessKey;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getProcessDefinitionKey() {
		return processDefinitionKey;
	}

	public void setProcessDefinitionKey(String processDefinitionKey) {
		this.processDefinitionKey = processDefinitionKey;
	}

	public String getBusinessKey() {
		return businessKey;
	}

	public void setBusinessKey(String businessKey) {
		this.businessKey = businessKey;
	}
}
